<view class="list">
    <block wx:for="{{obj.orderGoods}}" wx:key="{{index}}"> 
        <view class="item" wx:if='{{item.promotionType!==9}}'>
            <image wx:if="{{item.imagePath}}" src="{{item.imagePath}}"></image>
            <image wx:else src="{{imageUrl}}/xiaomai.jpg"></image>
            <view class="info">
                <view>{{item.goodsName}}</view>
                <view class="pre_price">￥ {{util.formatNum(item.originalPrice)}}</view>
            </view>
            <view class="num">x {{item.num}}</view>
        </view>
        <view class="group_item" wx:else>
            <view class="group_text">
                <image src='{{imageUrl}}/group_image.png'></image>
                <text class="group-name">{{item.promotionAlias}}</text>
                <text class="num">数量: {{item.num}}</text>
            </view>
            <view class="item" wx:key="{{idx}}" wx:for="{{item.goodsList}}" wx:for-index="idx" wx:for-item="goodsList">
                <image wx:if="{{goodsList.imagePath}}" src="{{goodsList.imagePath}}"></image>
                <image wx:else src="{{imageUrl}}/xiaomai.jpg"></image>
                <view class="info">
                    <view>{{goodsList.goodsName}}</view>
                    <view class="pre_price">￥ {{util.formatNum(goodsList.originalPrice)}}</view>
                </view>
            </view>
        </view>
    </block>
</view>


<template name="my_toast">
    <view class="my_toast">{{my_toast_tip}}</view>
</template>

<wxs module="util">
    var formatNum=function(n){
        return Number(n)
    }
    module.exports = {
        formatNum : formatNum,
    }
</wxs>